package com.xjrsoft.module.customerTwo.ycode.t_ycode_class.mapper;

import com.xjrsoft.module.customerTwo.ycode.t_ycode_class.entity.TYcodeClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjrsoft.module.customerTwo.ycode.t_ycode_class.vo.TYcodeClassTreeVo;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author dongxinhang
 * @since 2024-07-17
 */
public interface TYcodeClassMapper extends BaseMapper<TYcodeClass> {


    /**
     * 查询分类树结构
     * @return List<TYcodeClassTreeVo>
     */
    List<TYcodeClassTreeVo> selectYcodeClassForTree();

    /**
     * 获取二级分类
     * @return
     */
    List<TYcodeClass> getSecondaryClassList();
}
